<?php
namespace app\api\controller\omedog;
use app\api\controller\Common;
use think\Db;
class Index extends Common{ //搬砖狗
	public function _empty($name){
        die('非法访问！你的IP已被监控！');
    }
    public function index(){	//公告首页 ..?未做分页处理
    	$appdata = $this->appdata;	//接收的所有数据 含header
    	$userinfo = $this->userinfo;	//用户信息
        $setting = $this->setting;	//系统参数

        $hangqing = db('hangqing')->order('id desc')->find();   //实时行情
        $lists = db('omedog')->where('uid',$userinfo['id'])->select();  //投资的列表
        $userinfo = apiuserbaseinfo($userinfo);
        apifasong([
            'hangqing'=>$hangqing,
            'lists'=>$lists,
            'userinfo'=>apiuserbaseinfo($userinfo),
            'setting'=>apisettingbaseinfo($setting),
        ]);
    }
}






